<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

            <!-- css -->
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.min.css" media="screen, projection" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-responsive.min.css" media="screen, projection" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
            <!-- js -->
            <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.min.js"></script>
            <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.min.js"></script>
            <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/underscore.min.js"></script>
            <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/backbone.js"></script>
            <!--[if lt IE 9]>
            <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/html5.js"></script>
            <![endif]-->
            <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>

    <body>
        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="brand" href="#">Mely</a>
                    <div class="nav-collapse collapse">
                        <?php
                        $this->widget('bootstrap.widgets.TbNavbar', array(
                            'type' => 'inverse', // null or 'inverse'
                            'brand' => 'Mely',
                            'brandUrl' => '#',
                            'collapse' => false, // requires bootstrap-responsive.css
                            'items' => array(
                                array(
                                    'class' => 'bootstrap.widgets.TbMenu',
                                    'items' => array(
                                        array('label' => 'Bán hàng', 'url' => $this->createUrl('/ban-hang')),
                                        array('label' => 'Chấm công', 'url' => $this->createUrl('/cham-cong')),
                                        array('label' => 'Quản lý', 'url' => '#',
                                            'items' => array(
                                                array(
                                                    'label' => Yii::t('app','Category'),
                                                    'url'   => array('/product/category/list')
                                                ),
                                                array(
                                                    'label' => Yii::t('app','Product'),
                                                    'url'   => array('/product/product/list')
                                                ),
                                                array(
                                                    'label' => Yii::t('app','Item'),
                                                    'url'   => array('/product/item/list')
                                                ),
                                                array(
                                                    'label' => Yii::t('app','Supplier'),
                                                    'url'   => array('/product/supplier/list')
                                                ),
                                                array(
                                                    'label' => 'Phiếu giảm giá',
                                                    'url'   => array('/product/coupon')
                                                ),
                                                array(
                                                    'label' => Yii::t('app','Expense'),
                                                    'url'   => array('/product/expense/list')
                                                ),
                                                array(
                                                    'label' => Yii::t('app','User'),
                                                    'url'   => array('/user/admin/admin')
                                                ),
                                            )
                                        ),
                                    ),
                                ),
                                )));
                        ?>

                    </div><!--/.nav-collapse -->
                </div>
            </div>
        </div>
        <div class="container">
            <?php
                $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
                    'links' => $this->breadcrumbs
                ));
            ?>
            <?php echo $content ?>
            <div class="clear"></div>
            <hr />
            <footer>
                <p class="copyright">Mely Shop © 2013</p>
            </footer> <!--footer-->
        </div> <!-- /container -->
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/main.js"></script>
    </body>
</html>

